<%@ page import="com.google.appengine.api.blobstore.BlobstoreServiceFactory" %>
<%@ page import="com.google.appengine.api.blobstore.BlobstoreService" %>
<%
   BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
%>
<html>
<head>
<title>Alfresco I18N Tools</title>
<link rel="stylesheet" type="text/css" href="/assets/screen.css" />
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-340797-7']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body>
<div class="header">
<h1 class="title"><a href="/">Alfresco I18N Tools</a></h1>
</div>

<div class="body">
<h1>Upload Translation</h1>
<p>Use this form to upload your Alfresco translation package in AMP or JAR file format. <a href="http://wiki.alfresco.com/wiki/Language_Pack_Development#Packaging_Language_Packs">What does this mean?</a></p>
<p class="pullout">The file name of your package should contain the version of Alfresco the translation is targeted at, and should end with the locale suffix of your translation language. For example: <tt>alfresco-langpack-community-3.3_es.jar</tt> or 
<tt>repository-langpack-enterprise-3.2r_fr_FR.amp</tt>.</p>
<p>All uploaded packages are publicly available for others to view and download. By uploading your translation you agree to irrevocably license the content under a Creative Commons <a href="http://creativecommons.org/licenses/by-sa/3.0/">Attribution-ShareAlike 3.0</a> license.</p>
<form action="<%= blobstoreService.createUploadUrl("/upload") %>" method="post" enctype="multipart/form-data">
<div class="form-field">
<label for="jar">JAR/AMP file:</label> <div class="value"><input id="jar" type="file" name="f" size="60" />
<span class="form-help"></span></div>
</div>
<div class="form-field">
<input type="submit" value="Upload">
</div>
</form>
</div>
<div class="footer">
<p>Alfresco I18N Tools, developed by <a href="http://twitter.com/wabson">@wabson</a>. <a href="http://code.google.com/p/alfresco-i18n-tools/">Project hosting</a> by Google Code.</p>
</div>
</body>
</html>